{{extends file="admin/admin_header.tpl"}}
{{block name="content"}}
<h3>留言回复</h3>
	<div class="message" style="padding: 15px 0;overflow: hidden;line-height: 22px;border-bottom: 1px solid #ccc;">
		<img src="{{base_url()}}/Public/img/photo.png" class="photo" style="float:left;">
		<div class="message-container" style="margin-left: 18px;float: left;width: 665px;">
			<p style="margin:0;">
				<span>{{$question.0.name}}&nbsp;&nbsp;&nbsp;|</span>
				<span>&nbsp;&nbsp;&nbsp;{{date('Y-m-d',$question.0.time)}}</span>
			</p>
			<p class="message-content" style="margin-top: 3px;margin-bottom:0;">{{$question.0.content}}</p>
		</div>
	</div>
	{{foreach $message as $v}}
	<div class="message" style="padding: 15px 0;overflow: hidden;line-height: 22px;border-bottom: 1px solid #ccc;">
		<img src="{{base_url()}}/Public/img/photo.png" class="photo" style="float:left;">
		<div class="message-container" style="margin-left: 18px;float: left;width: 665px;">
			<p style="margin:0;">
				<span>{{if $v.aid == 0}}机械电子工程学院{{else}}{{$v.name}}{{/if}}&nbsp;&nbsp;&nbsp;|</span>
				<span>&nbsp;&nbsp;&nbsp;{{date('Y-m-d',$v.time)}}</span>
			</p>
			<p class="message-content" style="margin-top: 3px;margin-bottom:0;">{{$v.content}}</p>
		</div>
	</div>
	{{/foreach}}
	<form action="{{site_url("document/MessageReply")}}" method="post">
		<p style="line-height: 30px;text-indent: 10px;background: #ddd;margin:0;">留言</p>
		<textarea name="message_content" style="width: 100%;height: 100px;line-height: 20px;padding: 10px 8px;border: 3px solid #ddd;outline: none;"></textarea>
		<input type="hidden" name="message_pid" value="{{$message_id}}" />
		<input type="submit" value="提交" class="submit" style="margin-top: 20px;width: 110px;height: 27px;background: #83e299;color: #fff;border: 0;outline: 0;margin-left: 485px;cursor: pointer;" />
	</form>
{{/block}}